﻿using System;
namespace VegetableSale.NET.Entities
{
	public class Sale
	{
		private uint id;
		private int custid;
		private int commid;
		private int salemount;
		private int salemoney;
		private double allmoney;
		private DateTime saletime;

		public Sale()
		{
		}

        public Sale(uint id, int custid, int commid, int salemount, int salemoney, double allmoney, DateTime saletime)
        {
            this.id = id;
            this.custid = custid;
            this.commid = commid;
            this.salemount = salemount;
            this.salemoney = salemoney;
            this.allmoney = allmoney;
            this.saletime = saletime;
        }

        public uint Id { get => id; set => id = value; }
        public int Custid { get => custid; set => custid = value; }
        public int Commid { get => commid; set => commid = value; }
        public int Salemount { get => salemount; set => salemount = value; }
        public int Salemoney { get => salemoney; set => salemoney = value; }
        public double Allmoney { get => allmoney; set => allmoney = value; }
        public DateTime Saletime { get => saletime; set => saletime = value; }
    }
}

